/*

	File-Name: 0-data.do
	Last Updated: 11/6/2020
	Author: Janica Magat
	Last Updated: Janica Magat
	Purpose: Create the dataset for analysis

*/

cap version 15
clear
clear results
clear all
set more off, perm

* set working directory
capture cd "~/Dropbox/Lagos EGAP Metaketa Co-PI folder/05 Analyses/Final Data Analysis/GottliebLebasMagat_LagosTax_Replication - BJPS Dataverse" 
capture cd "Dropbox/Research/Nigeria/Lagos EGAP Metaketa Co-PI folder/05 Analyses/Final Data Analysis/GottliebLebasMagat_LagosTax_Replication - BJPS Dataverse" 

* install schemes
ssc install blindschemes, replace all // for plots
set scheme plotplainblind, perm
ssc install interflex, replace all // to produce flexible marginal effect estimates
ssc install balancetable // for balance tables
ssc install center // for balance tables
local github "https://raw.githubusercontent.com"
cap noi net uninstall multe
net install multe, from(`github'/gphk-metrics/stata-multe/main/) // for multiple treatment effects regression
ssc install betterbar
ssc install balancetable
ssc install estout

* load data
use "Data/lagostax_merged_final.dta", clear

* generate variables
qui do "2-variables.do"

* save dataset
save "Data/lagostax_merged_final_labeled.dta", replace
